
/*
 * Copyright (C) 2014 NetEast
 */


#ifndef _DEC_MAKING_H_
#define _DEC_MAKING_H_

typedef struct
{
    u_char             enabled;            
    struct sockaddr_in dec_making_addr;
    ngx_str_t          dec_making_name;
    size_t             packet_size;
    ngx_uint_t         tcp_timeout;
} dec_making_cfg_t;

typedef struct
{
    ngx_connection_t *c;
    ngx_pool_t       *pool;
    ngx_buf_t        *recv_buf;
    ngx_chain_t      *send_chain;
    ngx_chain_t      *send_down_chain_head;
    ngx_chain_t      *send_down_chain_tail;
} dec_making_request_t;

extern dec_making_cfg_t dec_making_cfg;

#endif

